package com.ict.web.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 公告对象 yzq_notice
 *
 * @author xss
 * @date 2022-02-15
 */
@ToString
@Data
@Accessors(chain = true)
@TableName("yzq_notice")
public class Notice implements Serializable
{
    private static final long serialVersionUID = 1L;

    public static final String DELETE_STATUS_NORMAL = "0";
    public static final String DELETE_STATUS_UNNORMAL = "1";

    public static final String NOTICE_STATUS_NOTRELEASE = "0";
    public static final String NOTICE_STATUS_RELEASE = "1";

    @ApiModelProperty(value = "公告id")
    @TableId(type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long noticeId;

    @ApiModelProperty(value = "公告标题")
    private String noticeTitle;

    @ApiModelProperty(value = "公告内容")
    private String noticeContent;

    @ApiModelProperty(value = "公告操作人")
    private String noticeOperator;
    
    @ApiModelProperty(value = "公告附件")
    private String  noticeFile;

    @ApiModelProperty(value = "公告发送人")
    private String noticeSend;

    @ApiModelProperty(value = "公告状态:{0:未发布;1:已发布}")
    private String noticeStatus;

    @ApiModelProperty(value = "删除状态{0:正常;1:删除}")
    private String delFlag;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
